package com.matt.service.impl;

import com.matt.domain.course.PrepareRemind;
import com.matt.repository.PrepareRemindRepository;
import com.matt.service.PrepareRemindService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;


@Service
public class PrepareRemindServiceImpl implements PrepareRemindService {

    @Autowired
    PrepareRemindRepository prepareRemindRepository;

    @Override
    public PrepareRemind save(PrepareRemind prepareRemind) {
        return prepareRemindRepository.save(prepareRemind);
    }

    @Override
    public List<PrepareRemind> findByStaffIdAndPlanIdAndRemindDateBetween(String staffId, String planId, Date beg, Date end) {
        return prepareRemindRepository.findByStaffIdAndPlanIdAndRemindDateBetween(staffId,planId,beg,end);
    }
}
